package com.hhs.storage.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hhs.storage.bean.AttachmentList;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hhs.storage.bean.InputParam;
import com.hhs.storage.bean.PermissionItem;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hhs
 * @since 2023-03-03
 */
public interface AttachmentListService extends IService<AttachmentList> {
    public Map<String,Object> queryByTargetId(InputParam inputParam);
    public Map<String,Object> addByTargetId( String permission,String targetId,String groupId,Integer type,MultipartFile file);
    public Map<String,Object> delete( String id);
    public Map<String,Object> downLoad( String id) throws IOException;
    public Map<String,Object> deleteByTargetId( String targetId);

    Map<String, Object> copyOrCut(InputParam inputParam);

    Map<String, Object> addPermByTargetId(String targetId, List<PermissionItem> permissionData);

    Map<String, Object> setAvator(String url);

}
